package ebj.common.exception;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

public class ExceptionUtils {
    public static String getExceptionInfoAsString(Exception e) {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();  
        e.printStackTrace(new PrintStream(baos));  
        String exception = baos.toString();
        return exception;
    }
}
